package club.easin.product.service.impl;

import static org.mockito.Mockito.RETURNS_DEEP_STUBS;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.easin.product.dao.ProductDao;
import club.easin.product.service.ProductService;

@Service("productService")
public class ProductServiceImpl implements ProductService{
	
	@Autowired
	private ProductDao productDao;

	@Override
	public List<Map<String, Object>> getTwoProduct() {
		// TODO Auto-generated method stub
		return this.productDao.getTwoProduct();
	}

	@Override
	public List<Map<String, Object>> getProductByid(String productid) {
		// TODO Auto-generated method stub
		return this.productDao.getProductByid(productid);
	}

	@Override
	public List<String> getPropertyByid(String productID, String property) {
		// TODO Auto-generated method stub
		return this.productDao.getPropertyByid(productID, property);
	}

	@Override
	public List<Map<String, Object>> getProductByRangeName(String rangeName) {
		// TODO Auto-generated method stub
		return this.productDao.getProductByRangeName(rangeName);
	}

	@Override
	public List<Map<String, Object>> getRangeBySubcategory(String subName) {
		// TODO Auto-generated method stub
		return this.productDao.getRangeBySubcategory(subName);
	}

	@Override
	public List<Map<String, Object>> getsoftwareByproduct(String productName, String stage) {
		// TODO Auto-generated method stub
		return this.productDao.getsoftwareByproduct(productName, stage);
	}

	@Override
	public List<Map<String, Object>> getReasonAndWay(String productName, String type) {
		// TODO Auto-generated method stub
		return this.productDao.getReasonAndWay(productName, type);
	}

	@Override
	public Map<String, Object> getInspectByPhenomenon(String phenomenon) {
		// TODO Auto-generated method stub
		return this.productDao.getInspectByPhenomenon(phenomenon);
	}

	@Override
	public Map<String,Object> getSampleByRange(String range) {
		// TODO Auto-generated method stub
		return this.productDao.getSampleByRange(range);
	}

	@Override
	public Map<String, Object> getReplaceByProductID(String productid) {
		// TODO Auto-generated method stub
		return this.productDao.getReplaceByProductID(productid);
	}

	@Override
	public List<String> getPhenomenonList(String productName, String faultName) {
		// TODO Auto-generated method stub
		return this.productDao.getPhenomenonList(productName, faultName);
	}

	@Override
	public Map<String, Object> getSampleByProductid(String productid) {
		// TODO Auto-generated method stub
		return this.productDao.getSampleByProductid(productid);
	}
}
